Component({
    properties: {
        pageTotal: {
            type: Number,
            value: 1
        },
        current: {
            type: Number,
            value: 0
        },
        page: {
            type: Number,
            value: 1
        },
        active: {
            type: Number,
            value: 0
        },
        showtext: {
            type: Boolean,
            value: !0
        }
    },
    observers: {
        "pageTotal,current,page,active": function(t) {
            this.hasMore();
        }
    },
    data: {
        text: "",
        show: !1
    },
    methods: {
        loading: function() {
            this.setData({
                text: "加载中..."
            });
        },
        err: function() {
            this.setData({
                text: "加载失败，请稍后再试!"
            });
        },
        nomore: function() {
            this.setData({
                text: "没有更多了!"
            });
        },
        show: function() {
            this.setData({
                show: !0
            });
        },
        hide: function() {
            this.setData({
                show: !1
            });
        },
        hasMore: function() {
            var t = !1;
            return this.show(), this.data.pageTotal > 8 * this.data.page ? (t = !0, this.loading()) : this.nomore(), 
            !!t && this.data.page + 1;
        }
    }
});